<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
  Generated by kissy-xtemplate.*/
KISSY.add('tree/node-xtpl', function () {
    return function (scopes, S, undefined) {
        var buffer = &quot;&quot;,
            config = this.config,
            engine = this,
            utils = config.utils;
        var runBlockCommandUtil = utils[&quot;runBlockCommand&quot;],
            getExpressionUtil = utils[&quot;getExpression&quot;],
            getPropertyOrRunCommandUtil = utils[&quot;getPropertyOrRunCommand&quot;];
        buffer += '&lt;div id=&quot;ks-tree-node-row-';
        var id0 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 1, undefined, false);
        buffer += getExpressionUtil(id0, true);
        buffer += '&quot;\r\n     class=&quot;';
        var config2 = {};
        var params3 = [];
        params3.push('row');
        config2.params = params3;
        var id1 = getPropertyOrRunCommandUtil(engine, scopes, config2, &quot;getBaseCssClasses&quot;, 0, 2, true, undefined);
        buffer += id1;
        buffer += '\r\n     ';
        var config4 = {};
        var params5 = [];
        var id6 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;selected&quot;, 0, 3, undefined, true);
        params5.push(id6);
        config4.params = params5;
        config4.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += '\r\n        ';
            var config8 = {};
            var params9 = [];
            params9.push('selected');
            config8.params = params9;
            var id7 = getPropertyOrRunCommandUtil(engine, scopes, config8, &quot;getBaseCssClasses&quot;, 0, 4, true, undefined);
            buffer += id7;
            buffer += '\r\n     ';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config4, &quot;if&quot;, 3);
        buffer += '\r\n     &quot;&gt;\r\n    &lt;div id=&quot;ks-tree-node-expand-icon-';
        var id10 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 7, undefined, false);
        buffer += getExpressionUtil(id10, true);
        buffer += '&quot;\r\n         class=&quot;';
        var config12 = {};
        var params13 = [];
        params13.push('expand-icon');
        config12.params = params13;
        var id11 = getPropertyOrRunCommandUtil(engine, scopes, config12, &quot;getBaseCssClasses&quot;, 0, 8, true, undefined);
        buffer += id11;
        buffer += '&quot;&gt;\r\n    &lt;/div&gt;\r\n    ';
        var config14 = {};
        var params15 = [];
        var id16 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;checkable&quot;, 0, 10, undefined, true);
        params15.push(id16);
        config14.params = params15;
        config14.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += '\r\n    &lt;div id=&quot;ks-tree-node-checked-';
            var id17 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 11, undefined, false);
            buffer += getExpressionUtil(id17, true);
            buffer += '&quot;\r\n         class=&quot;';
            var config19 = {};
            var params20 = [];
            var id21 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;checkState&quot;, 0, 12, undefined, true);
            params20.push(('checked') + id21);
            config19.params = params20;
            var id18 = getPropertyOrRunCommandUtil(engine, scopes, config19, &quot;getBaseCssClasses&quot;, 0, 12, true, undefined);
            buffer += id18;
            buffer += '&quot;&gt;&lt;/div&gt;\r\n    ';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config14, &quot;if&quot;, 10);
        buffer += '\r\n    &lt;div id=&quot;ks-tree-node-icon-';
        var id22 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 14, undefined, false);
        buffer += getExpressionUtil(id22, true);
        buffer += '&quot;\r\n         class=&quot;';
        var config24 = {};
        var params25 = [];
        params25.push('icon');
        config24.params = params25;
        var id23 = getPropertyOrRunCommandUtil(engine, scopes, config24, &quot;getBaseCssClasses&quot;, 0, 15, true, undefined);
        buffer += id23;
        buffer += '&quot;&gt;\r\n\r\n    &lt;/div&gt;\r\n    ';
        var config27 = {};
        var params28 = [];
        params28.push('component/extension/content-render/content-xtpl');
        config27.params = params28;
        var id26 = getPropertyOrRunCommandUtil(engine, scopes, config27, &quot;include&quot;, 0, 18, false, undefined);
        buffer += id26;
        buffer += '\r\n&lt;/div&gt;\r\n&lt;div id=&quot;ks-tree-node-children-';
        var id29 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 20, undefined, false);
        buffer += getExpressionUtil(id29, true);
        buffer += '&quot;\r\n     class=&quot;';
        var config31 = {};
        var params32 = [];
        params32.push('children');
        config31.params = params32;
        var id30 = getPropertyOrRunCommandUtil(engine, scopes, config31, &quot;getBaseCssClasses&quot;, 0, 21, true, undefined);
        buffer += id30;
        buffer += '&quot;\r\n';
        var config33 = {};
        var params34 = [];
        var id35 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;expanded&quot;, 0, 22, undefined, true);
        params34.push(id35);
        config33.params = params34;
        config33.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += '\r\nstyle=&quot;display:none&quot;\r\n';
            return buffer;
        };
        var inverse36 = config33.fn;
        config33.fn = config33.inverse;
        config33.inverse = inverse36;
        buffer += runBlockCommandUtil(engine, scopes, config33, &quot;if&quot;, 22);
        buffer += '\r\n&gt;\r\n&lt;/div&gt;';
        return buffer;
    }
});</pre>
</body>
</html>
